var dbserver = require("../server/dbserver")

exports.searchInfo = (req,res)=>{
    let data = req.body
    dbserver.searchInfo(data,res)
}

exports.isFriend = (req,res)=>{
    let uid = req.body.uid;
    let fid = req.body.fid
    dbserver.isFriend(uid,fid,res)
}

// exports.searchGroup = (req,res)=>{
//     let data = req.body.data;
//     dbserver.searchGroup(data,res)
// }

exports.isInGroup = (req,res)=>{
    let uid = req.body.uid;
    let gid = req.body.gid
    dbserver.isInGroup(uid,gid,res)
}